/*
 * Copyright (C) 2023 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tailyou.androidlearning2426.data


import com.tailyou.androidlearning2426.act.BannerActivity
import com.tailyou.androidlearning2426.model.Affirmation
import com.tailyou.androidlearning2426.R
import com.tailyou.androidlearning2426.act.BirthdayCardActivity
import com.tailyou.androidlearning2426.act.BusinessCardActivity
import com.tailyou.androidlearning2426.act.ListCardActivity
import com.tailyou.androidlearning2426.act.LoginActivity
import com.tailyou.androidlearning2426.act.RollDiceActivity
import com.tailyou.androidlearning2426.act.TipCalculatorActivity
import com.tailyou.androidlearning2426.act.WeChatActivity
import com.tailyou.androidlearning2426.model.EntryBean
import com.tailyou.androidlearning2426.model.WeChatMsg

/**
 * [Datasource] generates a list of [Affirmation]
 */
class Datasource() {
    fun loadAffirmations(): List<Affirmation> {
        return listOf<Affirmation>(
            Affirmation(R.string.affirmation1, R.drawable.image1),
            Affirmation(R.string.affirmation2, R.drawable.image2),
            Affirmation(R.string.affirmation3, R.drawable.image3),
            Affirmation(R.string.affirmation4, R.drawable.image4),
            Affirmation(R.string.affirmation5, R.drawable.image5),
            Affirmation(R.string.affirmation6, R.drawable.image6),
            Affirmation(R.string.affirmation7, R.drawable.image7),
            Affirmation(R.string.affirmation8, R.drawable.image8),
            Affirmation(R.string.affirmation9, R.drawable.image9),
            Affirmation(R.string.affirmation10, R.drawable.image10)
        )
    }

    /**
     * 读取微信消息，假数据
     */
    fun loadWeChatMsg(): List<WeChatMsg> {
        return listOf<WeChatMsg>(
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30"),
            WeChatMsg(R.drawable.image2, "金甲工坊", "今天下午3点在技能训练中心开周例会", "11:30")
        )
    }

    /**
     * 读取Activity数据
     */
    fun loadEntryData(): List<EntryBean> {
        return listOf<EntryBean>(
            EntryBean(
                "BirthdayCardActivity",
                "学习文本、图片组件的基本用法",
                "2025年10月12日",
                BirthdayCardActivity::class.java
            ),
            EntryBean(
                "BusinessCardActivity",
                "学习图标资源以及Column和Row容器的使用",
                "2025年10月12日",
                BusinessCardActivity::class.java
            ),
            EntryBean(
                "ListCardActivity",
                "学习列表组件的使用",
                "2025年10月12日",
                ListCardActivity::class.java
            ),
            EntryBean(
                "LoginActivity",
                "基础组件综合实训，登录界面",
                "2025年10月12日",
                LoginActivity::class.java
            ),
            EntryBean(
                "RollDiceActivity", "摇塞子综合案例", "2025年10月12日", RollDiceActivity::class.java
            ),
            EntryBean(
                "TipCalculatorActivity",
                "小费计算器综合案例",
                "2025年10月12日",
                TipCalculatorActivity::class.java
            ),
            EntryBean(
                "WeChatActivity",
                "列表组件综合实训，微信聊天",
                "2025年10月12日",
                WeChatActivity::class.java
            ),
            EntryBean(
                "BannerActivity",
                "实现常见的顶部轮播图效果",
                "2025年11月20日",
                BannerActivity::class.java
            ),
        )
    }
}
